package yto.freemarker.springaop.client;

import yto.freemarker.springaop.connection.Connection;
import yto.freemarker.springaop.protocol.Protocol;
import yto.freemarker.springaop.util.SafeEncoder;

/**
 * @author dongxing
 **/
public class Client {

    Connection connection;

    public Client(String host,int port) {
        connection = new Connection(host, port);
    }


    public String set(String key, String value) {
        connection.sendCommad(Protocol.Commad.SET, SafeEncoder.encode(value));
        return null;
    }

    public String get(String key) {
//        connection.sendCommad();
        return null;
    }
}
